
// This function shows output text box and fills it with
// the corresponding text.  The variable number represents
// the hotspot number.  
function showText( number )
{
	// show the output box
	document.getElementById( "output-box" ).style.display = "block";
	
	if( number == 1 )
	{
		document.getElementById( "output-text" ).innerHTML = "The imaginary line that a planet or solar body spins around.";
	}
	else if( number == 2 )
	{
		document.getElementById( "output-text" ).innerHTML = "The core is the center of the Sun, where most of the heat for the Sun is produced.";
	}
	else if( number == 3 )
	{
		document.getElementById( "output-text" ).innerHTML = "The Sun’s outer atmosphere.";
	}
	else if( number == 4 )
	{
		document.getElementById( "output-text" ).innerHTML = "A solar eclipse occurs when sunlight is fully or partially blocked by the Moon, this happens when the Moon is between the Sun and the Earth. A lunar eclipse is when the Earth fully or partially blocks sunlight from reaching the Moon, this happens when the Earth is between the Sun and the Moon.";
	}
	else if( number == 5 )
	{
		document.getElementById( "output-text" ).innerHTML = "A nuclear reaction that generates energy.";
	}
	else if( number == 6 )
	{
		document.getElementById( "output-text" ).innerHTML = "The surface of the Sun.";
	}
	else if( number == 7 )
	{
		document.getElementById( "output-text" ).innerHTML = "Process that plants and organisms use to convert light energy into food energy.";
	}
}

//function hideOutput()
//{
//	document.getElementById( "output-box" ).style.display = "none";
//}